// BackStagePageTool.cpp : implementation file
//

#include "stdafx.h"
#include "ModelLayer.h"
#include "BackStagePageTool.h"
#include "afxdialogex.h"


// CBackStagePageTool dialog

IMPLEMENT_DYNAMIC(CBackStagePageTool, CBCGPDialog)

CBackStagePageTool::CBackStagePageTool(CWnd* pParent /*=NULL*/)
	: CBCGPDialog(CBackStagePageTool::IDD, pParent)
{

}

CBackStagePageTool::~CBackStagePageTool()
{
}

void CBackStagePageTool::DoDataExchange(CDataExchange* pDX)
{
	CBCGPDialog::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(CBackStagePageTool, CBCGPDialog)
	ON_BN_CLICKED(IDC_TOOL_CABLE_DESIGNER, &CBackStagePageTool::OnBnClickedToolCableDesigner)
END_MESSAGE_MAP()


// CBackStagePageTool message handlers


void CBackStagePageTool::OnBnClickedToolCableDesigner()
{
	CString sDir = CModelObjOption::GetInstallDir()+_T("/CableDesigner/Bin/CableAutoGeneration.exe");
	::ShellExecute(NULL,_T("open"),sDir,NULL,NULL,SW_SHOW);
}
